#include "stdafx.h"
#include "CelestialBodyInfo.hpp"


CelestialBodyInfo::CelestialBodyInfo(CelestialBody ^Body) : m_Body(Body) {


}

void CelestialBodyInfo::UpdatePositions(array<double> ^Times) {

	int Length = Times->Length;
	this->m_Positions = gcnew array<Vector3d>(Length);
	
	for (int i = 0; i < Length; ++i) {
		this->m_Positions[i] = this->m_Body->getPositionAtUT(Times[i]);
	}

}